/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.job;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户简历Entity
 * @author 罗天文
 * @version 2018-06-15
 */
public class HkUserResume extends DataEntity<HkUserResume> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String portrait;		// 简历头像
	private HkRecruitCategory functions;		// 期望职能
	private Area place;		// 期望地点
	private String salary;		// 期望年薪
	private String content;		// 自我描述
	private String state;		// 当前状态
	private String worknature;		// 工作性质
	private String isopen;		// 是否开放
	private String timetopost;		// 到岗时间
	private List<HkUserResumeEducational> hkUserResumeEducationalList = Lists.newArrayList();		// 子表列表
	private List<HkUserResumeExperience> hkUserResumeExperienceList = Lists.newArrayList();		// 子表列表
	
	public HkUserResume() {
		super();
	}

	public HkUserResume(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=200, message="简历头像长度必须介于 0 和 200 之间")
	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public HkRecruitCategory getFunctions() {
		return functions;
	}

	public void setFunctions(HkRecruitCategory functions) {
		this.functions = functions;
	}

	public Area getPlace() {
		return place;
	}

	public void setPlace(Area place) {
		this.place = place;
	}

	@Length(min=0, max=200, message="期望年薪长度必须介于 0 和 200 之间")
	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}
	
	@Length(min=0, max=200, message="自我描述长度必须介于 0 和 200 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=1, message="当前状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=1, message="工作性质长度必须介于 0 和 1 之间")
	public String getWorknature() {
		return worknature;
	}

	public void setWorknature(String worknature) {
		this.worknature = worknature;
	}
	
	@Length(min=0, max=1, message="是否开放长度必须介于 0 和 1 之间")
	public String getIsopen() {
		return isopen;
	}

	public void setIsopen(String isopen) {
		this.isopen = isopen;
	}
	
	@Length(min=0, max=1, message="到岗时间长度必须介于 0 和 1 之间")
	public String getTimetopost() {
		return timetopost;
	}

	public void setTimetopost(String timetopost) {
		this.timetopost = timetopost;
	}
	
	public List<HkUserResumeEducational> getHkUserResumeEducationalList() {
		return hkUserResumeEducationalList;
	}

	public void setHkUserResumeEducationalList(List<HkUserResumeEducational> hkUserResumeEducationalList) {
		this.hkUserResumeEducationalList = hkUserResumeEducationalList;
	}
	public List<HkUserResumeExperience> getHkUserResumeExperienceList() {
		return hkUserResumeExperienceList;
	}

	public void setHkUserResumeExperienceList(List<HkUserResumeExperience> hkUserResumeExperienceList) {
		this.hkUserResumeExperienceList = hkUserResumeExperienceList;
	}
}